<layout name="layout"/>


<p>
<!-- Button trigger modal -->
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#myModal',center:true}">
{$Think.lang.add_new}
</button>
<button type="button" onclick="bulkdel('__CONTROLLER__/batchDelete')" class="uk-button uk-button-default">{$Think.lang.batch_delete}</button>
</p>

<form class="uk-form">
    <div class="uk-grid">
		<div class="uk-width-1-4">#:<input type="text" name="nt_id" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-1-4">{$Think.lang.notice_title}:<input type="text" name="nt_title" placeholder="" class="uk-width-1-1"></div>
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">{$Think.lang.search}</button>
</p>
</form>

          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
	<thead>
		<th><input id="checkall" type="checkbox" /></th>	<th>#</th>	
		<th>#</th>		<th>{$Think.lang.notice_title}</th> <th>{$Think.lang.nt_type}</th>		<th>{$Think.lang.sort}</th>		
		<th>{$Think.lang.status}</th>	<th>{$Think.lang.lang}</th>	<th>{$Think.lang.add_time}</th>		<th>--</th>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
		<td><input name="check_child" value="{$vo.nt_id}" type="checkbox" /></td>
			<td><a href="__CONTROLLER__/details/{$vo.nt_id}">{$vo.nt_id}</a></td><td>{$vo.nt_title|cut_str='30'}</td>
			<td>{$vo.nt_type|NoticeType}</td>
			<td>{$vo.nt_sort}</td><td>{$vo.nt_isactive|displayIcon}</td>
			<td>{$vo.nt_lang}</td>
			<td>{$vo.nt_date}</td><td>
				<a href="javascript:void(0)" onclick="confirmDelete('__CONTROLLER__/deleteHandle/{$vo.nt_id}')">
					<i class="uk-icon-trash"></i>
				</a>
			</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
{$page}
<!-- Modal -->
<div class="uk-modal" id="myModal">
 <form id="validate_form" class="uk-form"  method="post" action="__CONTROLLER__/addHandle">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.add_new}</div>

<table class="uk-table">
	<tr><td width=120>{$Think.lang.notice_title}</td><td>
<input type="text" name="nt_title"   required value="" />
</td></tr>
<tr><td>{$Think.lang.lang}</td><td>
<select name="nt_lang" required>
<option value="">--</option>
<volist name=":explode(',',$web_config['web_lang'])" id="vo">
<option  value="{$vo}">{$vo}</option>
</volist>
</select>
<small class="uk-text-muted">{$Think.lang.lang_tip}</small>
</td></tr>

	<tr><td>{$Think.lang.nt_type}</td><td>
<label><input type="radio" name="nt_type"    value="1" checked /> All</label>&nbsp;&nbsp;
<label><input type="radio" name="nt_type"    value="2" /> Merchant</label>&nbsp;&nbsp;
<label><input type="radio" name="nt_type"    value="3" /> Affiliate</label>&nbsp;&nbsp;
</td></tr>

	<tr><td>{$Think.lang.nt_object}</td><td>
<input type="text" name="nt_object"   required value="0" />
<small class="uk-text-muted">{$Think.lang.notice_tips}</small>
</td></tr>

<tr><td>{$Think.lang.nt_content}
</td><td>
<textarea name="nt_content"   style="height:150px;" required ></textarea>
</td></tr>
<tr><td>{$Think.lang.sort}</td><td>
<input type="text" name="nt_sort" value="10"   required  />
</td></tr>
  </table>
        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.save}</button>
		</div>
    </div>
  </form> 
</div>